package com.sugar.follow.up.module.business.dal.dataobject.userpatienttags;

import com.sugar.follow.up.framework.mybatis.core.type.StringListTypeHandler;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import com.sugar.follow.up.framework.mybatis.core.dataobject.BaseDO;

/**
 * 就诊人标签 DO
 *
 * @author Ysugar
 */
@TableName(value = "business_user_patient_tags", autoResultMap = true)
@KeySequence("business_user_patient_tags_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserPatientTagsDO extends BaseDO {

    /**
     * 就诊人标签ID
     */
    @TableId
    private Long id;
    /**
     * 就诊人ID
     */
    private Long patientId;
    /**
     * 标签
     */
    @TableField(typeHandler = StringListTypeHandler.class)
    private List<String> tag;
}
